package friendShips;


import org.hibernate.Session;

public class FriendManager {
	private Session session = null;
	 public FriendManager(Session session) {
	  if(session == null)
	    throw new 
	      RuntimeException("Invalid session object.");
	  this.session = session;
	 }
	 public void saveUser(FriendShip user){
	  session.save(user);
	 }
	 public void updateUser(FriendShip user){
	  session.update(user);
	 }
	 public void deleteUser(FriendShip user) {
	  session.delete(user);
	 }

}
